package edu.zut.cs.network.Experiment3;

public class Test5 {
    public static void main(String[] args) {
        double sum=0;
        double temp2 = 1;
        for(double  i = 0; i < 49;){
            double temp1 = temp2;
            i++;
            temp2 = 2*i+1;
            double num = temp1 / temp2;
//            System.out.println(num);
            sum = sum + num;
        }
        System.out.println("该表达式的和为："+sum);
    }
}
